#编辑成员页面
#输入姓名和手机
from selenium.webdriver.common.by import By

from po.basepage import BasePage


class EditMemberPage(BasePage):
    def edit_member(self):
        from po.add_menber_page import AddMemberPage
        self.find_and_send_keys(By.XPATH,"//*[contains(@text,'姓名')/../android.widget.EditText]","张三")
        self.find_and_send_keys(By.XPATH,"//*[contains(@text,'手机')/../android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.EditText]","18512345678")
        self.find_and_click(By.XPATH,"//*[@text='保存']")
        return AddMemberPage(self.driver)